<?php
/**
 * WebSocketService.php
 *
 * @copyright   2023 thingsworld.com.cn - All Rights Reserved
 * @link        http://thingsworld.com.cn/
 * @author      stiffer.chen <chenl@thingsworld.com.cn>
 * @created     2023-02-23 15:58:04
 * @modified    2023-02-23 15:58:04
 *
 */

namespace App\Services;

use Swoole\WebSocket\Server;

class WebSocketService
{
    private $server;
    public function __construct()
    {
        $server = new Server('127.0.0.1', 9502);
        $server->on('start', function ($server) {

        });
        $this->server = $server;
    }

    public function onStart()
    {

    }
}